from sympy import symbols, Eq, solve

# 定义符号
x, y = symbols('x y')

# 定义方程
eq1 = Eq(3*x + 2*y, 7)
eq2 = Eq(x - y, 1)

# 使用solve()函数求解方程组
solution = solve((eq1, eq2), (x, y))

print(solution)